home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re sending semantic events to < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     Re: sending semantic events to embedded parts
  2. Sent:        3/17/96 9:43 PM
  3. Received:    3/18/96 7:01 AM
  4. From:        Greg Friedman, friedman@cognosis.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >3/17/96
  9. >
  10. >I have a part, that all user interface is sent to myself via Semantic events.
  11. >When I am the root part everything works great. However when I'm embedded,
  12. >only the events that do not have an object specifier associated with them,
  13. >come through. I use the method CreatePartAddrDesc to create the target param
  14. >in the CreateEvent method.
  15. >
  16. >I found the method CreatePartObjSpec, but it says it is not to be used for
  17. >recording. The whole reason for factoring and dispatching semantic events was
  18. >to be recordable.
  19. >
  20. >How do I target my part when I am embedded?
  21.  
  22. Ken,
  23.  
  24. You should use CreatePartAddrDesc. I suspect you are calling
  25. CreatePartAddrDesc with a descriptor that describes the target object, but
  26. doesn't describe the part. You need to add part specifier information to
  27. the descriptor before calling CreatePartAddrDesc. Use either
  28. EmbeddedFrameSpec or create an object specifier that describes your part by
  29. the persistent id of its primary frame. Once you've got the complete object
  30. specifier, you should be able to call CreatePartAddrDesc. If you think you
  31. are already doing this, I suggest you post your code to the OpenDoc
  32. newsgroup or interest list and see if someone there has an idea about why
  33. it isn't working.
  34.  
  35. Good luck,
  36.  
  37. Greg.
  38.  
  39.  
  40. ___________________________________________________________
  41. Greg Friedman        ODF Engineering         Apple Computer
  42.  
  43.